﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.MultiUserAdminPageBase" %>
<ali:Get ID="SubInstance" Object="SubInstance" Guid="Request.QueryString['SubInstanceID']" />
<ali:List ID="Company" Object="Company" Condition="SubInstanceID=SubInstance[ID]" Validate="True" />
<section data-page="company_edit" data-title="编辑企业" data-id="<%=Company[InnerID]%>" data-tag-inner-ids="<%=Company[TagInnerIDs]%>" data-sub-instance-id="<%=SubInstance[InnerID]%>" data-region-linkage="({element:'[data-id=region] select:first',index:1,id:'<%=Company[RegionID]%>',parentChain:null,parentChainPage:'ajax_parent_chain.aspx?RegionID=<%=Company[RegionID]%>'})" data-industry-linkage="({element:'[data-id=industry] select:first',index:1,id:'<%=Company[IndustryID]%>',parentChain:null,parentChainPage:'ajax_parent_chain.aspx?IndustryID=<%=Company[IndustryID]%>'})" data-department="<%=Company[Department]%>">
	<div class="path1"><span>您的位置：</span><b class="<%=ContentLang%>Font"><%=Company[Name]%></b></div>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table">
				<tr>
					<th width="140">企业名称：</th>
					<td>
						<input type="text" name="Name" value="<%=Company[Name]%>" size="50" maxlength="150" class="ali-input ali-input-required <%=ContentLang%>Font" data-old="<%=Company[Name]%>">
						<div>
							<ali:List Object="Tag">
								<ali:Record>
									<label><input type="checkbox" name="Tag" value="<%=ID%>" data-inner-id="<%=InnerID%>" data-name="<%=Name%>"><%=Name%></label>
								</ali:Record>
							</ali:List>
						</div>
					</td>
				</tr>
				<tr>
					<th>所属地区：</th>
					<td data-id="region">
						<select class="<%=ContentLang%>Font">
							<option value="" data-inner-id="" data-page-generate="" data-page-template="" data-page-id="" data-page-extension="" data-parent-chain="">-- 未指定 --</option>
							<ali:List Object="Region" Condition="ParentID IS NULL">
								<ali:Record>
									<option value="<%=ID%>" data-inner-id="<%=InnerID%>" data-page-generate="<%=PageGenerate%>" data-page-template="<%=PageTemplate%>" data-page-id="<%=PageID%>" data-page-extension="<%=PageExtension%>" data-parent-chain="<%=ParentChain%>"><%=Name%></option>
								</ali:Record>
							</ali:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>通讯地址：</th>
					<td>
						<input type="text" name="Address" value="<%=Company[Address]%>" size="80" class="ali-input <%=ContentLang%>Font">
					</td>
				</tr>
				<tr>
					<th>邮政编码：</th>
					<td>
						<input type="text" name="Zip" class="ali-input" value="<%=Company[Zip]%>">
					</td>
				</tr>
				<tr>
					<th>所属行业：</th>
					<td data-id="industry">
						<select class="<%=ContentLang%>Font">
							<option value="" data-inner-id="" data-page-generate="" data-page-template="" data-page-id="" data-page-extension="" data-parent-chain="">-- 未指定 --</option>
							<ali:List Object="Industry" Condition="ParentID IS NULL">
								<ali:Record>
									<option value="<%=ID%>" data-inner-id="<%=InnerID%>" data-page-generate="<%=PageGenerate%>" data-page-template="<%=PageTemplate%>" data-page-id="<%=PageID%>" data-page-extension="<%=PageExtension%>" data-parent-chain="<%=ParentChain%>"><%=Name%></option>
								</ali:Record>
							</ali:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>主营业务：</th>
					<td>
						<input type="text" name="BusinessScope"  value="<%=HttpUtility.HtmlEncode(Convert.ToString(Company[BusinessScope]))%>" size="80" maxlength="250" class="ali-input <%=ContentLang%>Font">
					</td>
				</tr>
				<tr>
					<th>成立日期：</th>
					<td><input type="text" name="FoundedDate" value="<%If !Convert.IsDBNull(Company[FoundedDate])%><%=Convert.ToDateTime(Company[FoundedDate]).ToString("yyyy-MM-dd")%><%EndIf%>" class="ali-input"></td>
				</tr>
				<tr>
					<th>营业执照号：</th>
					<td><input type="text" name="LicenseNumber" value="<%=Company[LicenseNumber]%>" class="ali-input"></td>
				</tr>
				<tr>
					<th>负责人（法人）：</th>
					<td><input type="text" name="Owner" value="<%=Company[Owner]%>" class="ali-input"></td>
				</tr>
				<tr>
					<th>注册资金：</th>
					<td><input type="text" name="RegisteredCapital" value="<%=Company[RegisteredCapital]%>" class="ali-input">万元</td>
				</tr>
				<tr>
					<th>网站地址：</th>
					<td>
						<input type="text" name="Homepage" value="<%=Company[Homepage]%>" size="50" class="ali-input">
					</td>
				</tr>
				<tr>
					<th>联 系 人：</th>
					<td><input type="text" name="Contact" value="<%=Company[Contact]%>" class="ali-input <%=ContentLang%>Font"></td>
				</tr>
				<tr>
					<th>固定电话：</th>
					<td><input type="text" name="Phone" value="<%=Company[Phone]%>" class="ali-input"></td>
				</tr>
				<tr>
					<th>手机号码：</th>
					<td><input type="text" name="Mobile" value="<%=Company[Mobile]%>" class="ali-input"></td>
				</tr>
				<tr>
					<th>电子邮件：</th>
					<td><input type="text" name="Email" value="<%=Company[Email]%>" class="ali-input"></td>
				</tr>
				<tr>
					<th>QQ号码：</th>
					<td><input type="text" name="QQ" value="<%=Company[QQ]%>" class="ali-input"></td>
				</tr>
				<tr>
					<th>传真：</th>
					<td><input type="text" name="Fax" class="ali-input" value="<%=Company[Fax]%>"></td>
				</tr>
				<tr>
					<th>部门联系：</th>
					<td data-id="department" class="sub-list-table">
						<table border="0" cellpadding="4" cellspacing="1">
							<thead>
								<tr>
									<th>部门</th>
									<th>联系人</th>
									<th>电话</th>
									<th>传真</th>
									<th>手机</th>
									<th>邮件</th>
									<th>QQ</th>
									<th>地址</th>
									<th>操作</th>
								</tr>
							</thead>
							<tfoot>
								<tr>
									<td><button type="button">添加</button></td>
									<td colspan="8"></td>
								</tr>
							</tfoot>
							<tbody>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<th>企业标志：</th>
					<td>
						<input type="text" name="Logo" value="<%=Company[Logo]%>" size="55" class="ali-input">
						<a class="ali-button ali-uploader">浏览...</a>
						<input type="hidden" name="LogoAllowedType" value="gif|jpg|jpeg|png|bmp">
					</td>
				</tr>
				<tr>
					<th>企业简介：</th>
					<td><textarea name="Description" data-lang="<%=ContentLang%>" data-instance-id="<%=InstanceID%>" class="editor"><%=HttpUtility.HtmlEncode(Company[Description].ToString())%></textarea></td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>
